package com.cnyz.dto;

import com.cnyz.base.BaseDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Email;

@ApiModel(description = "用户数据传输对象")
@Data
public class UserDto extends BaseDto {
    @ApiModelProperty(value = "用户名")
    String username;

    @ApiModelProperty(value = "用户名")
    String password;

    @ApiModelProperty(value = "邮箱")
    @Email(message = "邮箱格式不正确")
    String email;

    @ApiModelProperty(value = "类型 (0:学生 1:老师)")
    Integer role;

    @ApiModelProperty(value = "头像URL")
    String avatar;

    @ApiModelProperty(value = "新密码")
    String newPassword;

    @ApiModelProperty(value = "验证码")
    String code;



}
